package redis

import "strconv"

func SyncGoodsStock(id, stock int) error {

	key := "goods_stock:goods_id_" + strconv.Itoa(id)
	for i := 0; i < stock; i++ {
		Rdb.LPush(key, id)
	}
	return nil
}
